package com.yanghang.service.impl;

import com.yanghang.dao.CompanyDao;
import com.yanghang.entity.Company;
import com.yanghang.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class CompanyServiceImpl implements CompanyService {
    @Autowired
    private CompanyDao cd;
    @Override
    @Transactional(readOnly = true)
    public List<Company> selectAllCompanyInformations() {
        return cd.selectAllCompanyInformations();
    }
}
